package Scanner;

import java.util.Scanner;

/*
* 键盘输入三个数字求最大值
* */
public class Scanner2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.print("请输入第一个数：");
        int a = sc.nextInt();
        System.out.print("请输入第二个数：");
        int b = sc.nextInt();
        System.out.print("请输入第三个数：");
        int c = sc.nextInt();

        System.out.println("这个三个数的最大值是：" + ((a > b ? a : b) > c ? (a > b ? a : b) : c));
    }
}
